// author by welong
// zuowl@qq.com
// 2014-09-04  8:47
// PAT basic 1001

#include <stdio.h>

int main(int argc, char **argv)
{
	int count = 0;
	int num;


	
	while(num != 1)
	{
		count++;
		if(num%2 == 0)
			num /= 2;
		else
			num = (num * 3 + 1)/2;
	}

	printf("%d", count);
	return 0;
}